package com.ngkj.zmfptwebsocket.chatModule.service.read;

import com.ngkj.zmfptCommon.common.bean.ChatMessage;

import java.util.List;
import java.util.Map;

/**
 * @author ChenHN
 * @since 2021/11/29 creation
 **/
public interface ChatReadService {

    List<ChatMessage> getTalkingMessage(String userId,String toUserId);

    List<ChatMessage> addTalkingMessage(String userId,String toUserId);

    /**
     * 获取我的消息中所有聊天
     * @param userId
     * @return
     */
    List<Map<String, Object>> getMessageList(Long userId);
}
